package com.example.dragon.untis;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/6/19.
 */

public class MyToast {
    public MyToast(Context context ,String msg,int flag){
        if (flag==1){
            Toast.makeText(context,msg,Toast.LENGTH_LONG).show();
        }else {
            Toast.makeText(context,msg,Toast.LENGTH_SHORT).show();
        }

    }
}
